package Template5::Element::Switch;
use base qw(Template5::Element::ContainerCond);

use strict;
use warnings;

#-------------------------------------------------------------------------------
#public
sub addChild($$)
{ 
	my $this      = shift;
	my $hHTMLNode = shift;
	my $hTMLNode  = shift;
	
	if(!$hTMLNode->isa('Template5::Element::Case'))
	{
		die('switch can\'t content no case element');
	}
	else
	{
		$this->SUPER::addChild($hHTMLNode, $hTMLNode);
	};
};

1;

